package me.yobol.greentable.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import me.yobol.greentable.bean.OrderCommodityBean;

/**
 * @author Yobol
 *
 */
public interface IOrderCommodityDAO {
	
	public int save(Connection ctn,OrderCommodityBean commodity) throws SQLException;
	
	public OrderCommodityBean delete(Connection ctn,int commodityId) throws SQLException;
	
	public void updateQuantity(Connection ctn,int commodityId,int quantity) throws SQLException;

	public OrderCommodityBean get(Connection ctn,int commodityId) throws SQLException;
	public List<OrderCommodityBean> getByOrderId(Connection ctn,int orderId) throws SQLException;
}
